<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="org.json.simple.JSONObject" %>
<%
	String counsel_kind = StringUtil.nvl(request.getParameter("counsel_kind"));

	HashList code306	= CommonUtil.getCodeList("306");	//분류2
	
	HashList list = new HashList();
	for (int i = 0; i < code306.size(); i++) {
		if (counsel_kind.equals(code306.get("code_desc",i))) {
			HashMap infos = new HashMap();
			infos.put("code", code306.get("code",i));
			infos.put("code_name", code306.get("code_name",i));
			list.add(infos);
		}
	}
	
	JSONObject json = new JSONObject();
	json.put("list", list);

	out.print(json.toString());
%>